package com.atguigu.gulimall.product.feign;

import com.atguigu.common.to.SkuReductionTo;
import com.atguigu.common.to.SpuBoundsTo;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * gulimall-coupon服务feign接口
 *
 * @author DuGuanghan
 * @since 2024-02-29 09:33:14
 */
@FeignClient("gulimall-coupon")
public interface CouponFeignService {

    /**
     * 保存SPU积分信息
     *
     * @param spuBoundsTo SPU积分信息传输对象
     * @return {@link R }
     * @author DuGuanghan
     * @since 2024-02-29 09:33:57
     */
    @PostMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundsTo spuBoundsTo);

    @PostMapping("/coupon/skufullreduction/saveSkuReduction")
    R saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo);
}
